#ifndef __BEEP_H__
#define __BEEP_H__

#define L0	0

#define L1	1
#define L2	2
#define L3	3
#define L4	4
#define L5	5
#define L6	6
#define L7	7

#define M1	11
#define M2	12
#define M3	13
#define M4	14
#define M5	15
#define M6	16
#define M7	17

#define H1	21
#define H2	22
#define H3	23
#define H4	24
#define H5	25
#define H6	26
#define H7	27

struct ToneNode
{
	short tone; // 音阶
	short len; // 节拍数(暂时无法支持半拍)
};

extern struct ToneNode *pCurMusic;
void Beep_SetFreq(int freq);
void Beep_PlayTone(short toneIdx);
void Beep_PlayMusic(short musicIdx);


#endif
